<!DOCTYPE html>
{# html element without xmlns will fail the epubchecker 3.01 test #}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>{{book.title}}</title>
  <style type="text/css">
.tocEntry-1 {
}
.tocEntry-2 {
	text-indent: 1em;
}
.tocEntry-3 {
	text-indent: 2em;
}
.tocEntry-4 {
	text-indent: 3em;
}
  </style>
</head>
<body>
{% for node in book.chapters recursive %}
  <div class="tocEntry-{{node.depth}}">
    <a href="{{node.href}}">{{node.title|e}}</a>
  </div>
  {% if node.children %}
    {{- loop(node.children) -}}
  {% endif %}
{% endfor %}
</body>
</html>
